package com.inspinia.base.api.jwt;

import java.util.ResourceBundle;

/**
 * Created by veblen on 2017/7/5.
 */
public class JWTConfig {
    /**
     * 读取db.properties
     **/
    public static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle.getBundle("jwt");

    public static String getString(String key) {
        return RESOURCE_BUNDLE.getString(key);
    }

    /**
     * 校验的密码
     */
    public static String SECRET = getString("secret");
    /**
     * 有效期，单位毫秒
     */
    public static long EXPIRED = Long.valueOf(getString("expired"));

    /**
     * 发行单位
     */
    public static String ISSUER = getString("issuer");
}
